package com.pactera.asmp.server.pojo;

import com.pactera.asmp.server.common.utils.FastJsonUtil;
import com.pactera.asmp.server.vo.StartupTestVo;

import java.util.ArrayList;
import java.util.List;

/**
 * @ProjectName: asmp-server
 * @Package com.pactera.asmp.server.pojo
 * @ClassName: WSMessage
 * @Description: wsmessage
 * @Date 2020/07/03 15:32
 * @Author lvzhiqiang
 * @Version 1.0
 */
public class WSScriptMessage<T> {

    private String touuid;
    private String fromuuid;
    private String msgcode;
    private String describe;
    private Integer taskId;
    private Integer exeNumber;
    private Integer monkeyExeNumber;
    private List<T> list=new ArrayList<>();
    private List<Integer> taskIds;
    private String auxDuid;
    private Integer taskType;
    private Short performanceType;
    private String errorVideoType;
    // 1 simulater 2上位机
    private Integer coldHotStartType;
    //1（cold）：冷启动，2（warm）：热启动
    private Integer coldHotStartMode;

    private Integer intervalTime;

    private List<StartupTestVo>  startupTestList = new ArrayList<>();

    public List<StartupTestVo> getStartupTestList() {
        return startupTestList;
    }

    public Integer getIntervalTime() {
        return intervalTime;
    }

    public void setIntervalTime(Integer intervalTime) {
        this.intervalTime = intervalTime;
    }

    public void setStartupTestList(List<StartupTestVo> startupTestList) {
        this.startupTestList = startupTestList;
    }

    public Integer getColdHotStartMode() {
        return coldHotStartMode;
    }

    public void setColdHotStartMode(Integer coldHotStartMode) {
        this.coldHotStartMode = coldHotStartMode;
    }

    public Integer getColdHotStartType() {
        return coldHotStartType;
    }

    public void setColdHotStartType(Integer coldHotStartType) {
        this.coldHotStartType = coldHotStartType;
    }

    public List<Integer> getTaskIds() {
        return taskIds;
    }

    public void setTaskIds(List<Integer> taskIds) {
        this.taskIds = taskIds;
    }

    public Integer getExeNumber() {
        return exeNumber;
    }

    public void setExeNumber(Integer exeNumber) {
        this.exeNumber = exeNumber;
    }

    public Integer getMonkeyExeNumber() {
        return monkeyExeNumber;
    }

    public void setMonkeyExeNumber(Integer monkeyExeNumber) {
        this.monkeyExeNumber = monkeyExeNumber;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }


    public String getTouuid() {
        return touuid;
    }

    public void setTouuid(String touuid) {
        this.touuid = touuid;
    }

    public String getFromuuid() {
        return fromuuid;
    }

    public void setFromuuid(String fromuuid) {
        this.fromuuid = fromuuid;
    }

    public String getMsgcode() {
        return msgcode;
    }

    public void setMsgcode(String msgcode) {
        this.msgcode = msgcode;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return FastJsonUtil.BeanToJson(this);
    }

    public String getAuxDuid() {
        return auxDuid;
    }

    public void setAuxDuid(String auxDuid) {
        this.auxDuid = auxDuid;
    }

    public Integer getTaskType() {
        return taskType;
    }

    public void setTaskType(Integer taskType) {
        this.taskType = taskType;
    }

    public Short getPerformanceType() {
        return performanceType;
    }

    public void setPerformanceType(Short performanceType) {
        this.performanceType = performanceType;
    }

    public String getErrorVideoType() {
        return errorVideoType;
    }

    public void setErrorVideoType(String errorVideoType) {
        this.errorVideoType = errorVideoType;
    }

}
